package yana.tpe.shop.domain.domains;

import java.io.Serializable;
import java.math.BigDecimal;

public class Product extends AbstractNamedDomain implements Serializable {

    private BigDecimal price;

    public Product() {
    }

    public Product(Long id, String name, BigDecimal price) {
        this.id = id;
        this.price = price;
        this.name = name;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    @Override
    public String toString() {
        return "Product{" + "name=" + name + "; price=" + price + '}';
    }
    
    
}
